﻿{include file="public/header" /}
			<form method="post">
				<div class="panel admin-panel">
					<div class="panel-head"><strong>{:lang('currency')['list']}</strong></div>
					<div class="padding border-bottom">
						<input type="button" class="button button-small checkall" name="checkall" checkfor="id" value="{:lang('currency')['all_select']}" />
						<a type="button" class="button button-small border-green" href="user/edit.html" />{:lang('currency')['add']}</a>
						<a id="select_del" type="button" class="button button-small border-red" href="#" />{:lang('currency')['del']}</a>
					</div>
					<table class="table table-hover">
						<tr>
							<th width="45">{:lang('label')['select']}</th>
							<th width="120">{:lang('label')['headimg']}</th>
							<th width="120">{:lang('label')['name']}</th>
							<th width="200">{:lang('label')['phone']}</th>
							<th width="100">{:lang('label')['status']}</th>
							<th width="100">{:lang('label')['handle']}</th>
						</tr>
						{volist name="data" id="user"}
						<tr>
							<td >
								<input type="checkbox" name="id" value="{$user.id}" />
							</td>
							<td><img class="radius-circle" height="40" src="{$user.headimg}"/></td>
							<td style="line-height:40px">{$user.name}</td>
							<td style="line-height:40px">{$user.phone}</td>
							<td style="line-height:40px">{if $user.status == "1"}<span class="icon-check text-sub">{:lang('currency')['status_1']}</span>{else}<span class="icon-times text-dot">{:lang('currency')['status_2']}</span>{/if}</td>
							<td style="line-height:40px"><a class="button border-blue button-little" href="user/edit.html?id={$user.id}">{:lang('currency')['edit']}</a> <a class="button border-yellow button-little" href="user/del.html?id={$user.id}&page={:input('get.page')}" onclick="if(confirm('{:lang('currency')['del']}?')){return true;}return false;">{:lang('currency')['del']}</a></td>
						</tr>
						{/volist}
					</table>
					{include file="public/pages" /}
				</div>
			</form>
			<script>
			$('#select_del').click(function(){
				var str=""; 
				$("input:checkbox[name=id]:checked").each(function(){ 
					str+=$(this).val()+",";
				});
				if(str!=''){
					if(confirm('{:lang('currency')['del']}?')){location.href='user/del.html?id='+str;}	
				}
			});
			</script>
{include file="public/footer" /}